package com.edu.neusoft.users.service.impl;

import com.edu.neusoft.users.domain.Comment;
import com.edu.neusoft.users.mapper.CommentMapper;
import com.edu.neusoft.users.service.ICommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentService implements ICommentService {
    @Autowired
    private CommentMapper commentMapper;

    @Override
    public List<Comment> selectCommentList(){
        return commentMapper.selectCommentList();
    }

    @Override
    public Comment getCommentByID(Long UserID){return commentMapper.getCommentByID(UserID);}

    @Override
    public int insertComment(Comment comment){return commentMapper.insertComment(comment);}

    @Override
    public int updateComment(Comment comment){return commentMapper.updateComment(comment);}


    @Override
    public long deleteComment(Long UserID){return commentMapper.deleteComment(UserID);}

}